import Vue from 'vue';
import App from './App';
import router from './router';
import store from './store';

import axios from 'axios';
// 引入echarts
import echarts from 'echarts';

import './mock/index.js';  // 该项目所有请求使用mockjs模拟
import './login.js';
import './ui.js';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
const axiosConfig = require('../static/config/axios.conf');
axios.defaults.baseURL = axiosConfig.getBaseUrl();//axios 全局设置

Vue.use(ElementUI);
Vue.config.productionTip = false;
Vue.prototype.$axios = axios;
Vue.prototype.$echarts = echarts;
var vm=new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})


